<?php
require_once 'BaseController.php';


class UserController extends BaseController {
    public function profile() {
        echo('UserController@profile');
        global $_G;
        $uid = intval($this->input('uid', $_G['uid']));
        
        // 业务逻辑...
        $data = ['username' => 'testuser', 'email' => 'test@example.com'];
        
        // 响应
        $this->response($data, 'user/profile');
    }
}